// DSPCounter - v1.6.15 - 04.03.2025 !function(){"use strict";function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function e(t,e,n,r,i,o,s){try{var u=t[o](s),a=u.value}catch(t){return void n(t)}u.done?e(a):Promise.resolve(a).then(r,i)}function n(t){return function(){var n=this,r=arguments;return new Promise((function(i,o){var s=t.apply(n,r);function u(t){e(s,i,o,u,a,"next",t)}function a(t){e(s,i,o,u,a,"throw",t)}u(void 0)}))}}function r(t,e,n){return e=l(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,n||[],l(t).constructor):e.apply(t,n))}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,w(r.key),r)}}function s(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=x(t))||e){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e,n){return(e=w(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},c.apply(null,arguments)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(){p=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,s=Object.create(o.prototype),u=new _(r||[]);return i(s,"_invoke",{value:E(t,n,u)}),s}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",h="suspendedYield",v="executing",y="completed",m={};function b(){}function g(){}function w(){}var S={};c(S,s,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(R([])));k&&k!==n&&r.call(k,s)&&(S=k);var O=w.prototype=b.prototype=Object.create(S);function P(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(i,o,s,u){var a=d(t[i],t,o);if("throw"!==a.type){var c=a.arg,l=c.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,s,u)}),(function(t){n("throw",t,s,u)})):e.resolve(l).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,u)}))}u(a.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function E(e,n,r){var i=f;return function(o,s){if(i===v)throw Error("Generator is already running");if(i===y){if("throw"===o)throw s;return{value:t,done:!0}}for(r.method=o,r.arg=s;;){var u=r.delegate;if(u){var a=I(u,r);if(a){if(a===m)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var c=d(e,n,r);if("normal"===c.type){if(i=r.done?y:h,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=y,r.method="throw",r.arg=c.arg)}}}function I(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=d(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var s=o.arg;return s?s.done?(n[e.resultName]=s.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return g.prototype=w,i(O,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:g,configurable:!0}),g.displayName=c(w,a,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,c(t,a,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},P(j.prototype),c(j.prototype,u,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var s=new j(l(t,n,r,i),o);return e.isGeneratorFunction(n)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},P(O),c(O,a,"Generator"),c(O,s,(function(){return this})),c(O,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=R,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return u.type="throw",u.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],u=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var a=r.call(s,"catchLoc"),c=r.call(s,"finallyLoc");if(a&&c){if(this.prev<s.catchLoc)return i(s.catchLoc,!0);if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else if(a){if(this.prev<s.catchLoc)return i(s.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return i(s.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;L(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,s,u=[],a=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e);else for(;!(a=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);a=!0);}catch(t){c=!0,i=t}finally{try{if(!a&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return u}}(t,e)||x(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e,n,r){var i=c(l(t.prototype),e,n);return"function"==typeof i?function(t){return i.apply(n,t)}:i}function g(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof e?e:e+""}function S(t){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(t)}function x(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}function k(t){var e="function"==typeof Map?new Map:void 0;return k=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(f())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var i=new(t.bind.apply(t,r));return n&&y(i,n.prototype),i}(t,arguments,l(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),y(n,t)},k(t)}var O,P=function(t,e){if(t)for(var n=Object.prototype.toString.call(e.prototype),r=Object.getPrototypeOf(t);r;){if(Object.prototype.toString.call(r)===n)return!0;r=Object.getPrototypeOf(r)}return!1},j=function(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)},E=function(t){return"string"==typeof t||P(t,String)},I=function(t){return"object"===S(t)&&!Array.isArray(t)&&null!==t},C=function(t){return"[object Object]"===Object.prototype.toString.call(t)},L=function(t){return P(t,Document)},_=function(t){var e=+"1E".concat(t||10),n=e/10;return Math.floor(n+Math.random()*(e-n))},R=function(t){if(!E(t)||!/^\d+(\.\d+)?:\d+(\.\d+)?:\d+(\.\d+)?$/.test(t.trim()))return null;var e=t.split(":"),n=0;return n+=3600*parseFloat(e[0]),n+=60*parseFloat(e[1]),n+=parseFloat(e[2]),isNaN(n)?null:n},N=function(t){try{return JSON.parse(t)}catch(t){return null}},F=function(t){try{return t()}catch(t){return null}},T=function(){var t=n(p().mark((function t(e){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e();case 3:return t.abrupt("return",t.sent);case 6:return t.prev=6,t.t0=t.catch(0),t.abrupt("return",null);case 9:case"end":return t.stop()}}),t,null,[[0,6]])})));return function(e){return t.apply(this,arguments)}}(),A=function(t,e,n){var r=t.length%e;return 0!==r&&(t+=n.repeat(e-r)),t},D=function(){return s((function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i(this,t),a(this,"timeoutId",void 0),a(this,"timeout",void 0),a(this,"cb",void 0),a(this,"shouldContinue",void 0),this.cb=e,this.timeoutId=null,this.timeout=j(n)&&n>=0?n:0,this.shouldContinue=!1}),[{key:"loopIteration",value:function(){this.shouldContinue&&(this.cb(),this.timeoutId=setTimeout(this.loopIteration.bind(this),this.timeout))}},{key:"start",value:function(){null===this.timeoutId&&(this.shouldContinue=!0,this.loopIteration())}},{key:"stop",value:function(){null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.shouldContinue=!1,this.timeoutId=null)}}])}(),W=function(t){if(!E(t))throw new Error("".concat(t," is not a string"));return 0===function(t){if(!E(t))throw new Error("".concat(t," is not a string"));return t.replace(/\s/g,"")}(t).length},H=function(t){var e=(E(t)?t:window.navigator.userAgent).toLowerCase();return/android|webos|iphone|ipad|ipod|blackberry|bb|playbook|iemobile|windows phone|kindle|silk|opera mini/i.test(e)};!function(t){t.OnPage="onpage",t.SameDomainFrame="samedomainiframe",t.CrossDomainFrame="crossdomainframe"}(O||(O={}));var M=function(){return s((function t(){if(i(this,t),a(this,"_location",void 0),a(this,"_topWin",void 0),a(this,"_topRef",void 0),t._instance)return t._instance;t._instance=this,this.analyzeLocation()}),[{key:"analyzeLocation",value:function(){var t=window.location.href;if(window.top===window)this._location=O.OnPage,this._topWin=window;else{this._topWin=window.top;try{t=this._topWin.location.href,this._location=O.SameDomainFrame}catch(e){this._location=O.CrossDomainFrame,t=window.document.referrer||window.location.href}}if(window.location.ancestorOrigins&&window.location.ancestorOrigins.length>0){var e=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1];new URL(e).hostname!==new URL(t).hostname&&(t=e)}this._topRef=t}},{key:"topReferrer",get:function(){return this._topRef}},{key:"topWindow",get:function(){return this._topWin}},{key:"onPage",get:function(){return this._location===O.OnPage}},{key:"inCrossDomainFrame",get:function(){return this._location===O.CrossDomainFrame}},{key:"inSameDomainFrame",get:function(){return this._location===O.SameDomainFrame}},{key:"isFullTopRefAvailable",get:function(){return this._location!==O.CrossDomainFrame}}])}();a(M,"_instance",void 0);var U=function(t,e){switch(null==t?void 0:t[e]){case!0:return 1;case!1:return 0;default:return-1}},Y={113:function(t){var e=t&&"secondaryParams"in t?{secondaryParams:Boolean(t.secondaryParams)}:t;return U(e,"secondaryParams")},115:function(t){var e;return null!==(e=null==t?void 0:t.methodOfDeterminingVisibility)&&void 0!==e?e:-1},116:function(t){var e;return null!==(e=null==t?void 0:t.appID)&&void 0!==e?e:-1},117:function(t){var e;return null!==(e=null==t?void 0:t.ifa)&&void 0!==e?e:-1},118:function(t){var e;return null!==(e=null==t?void 0:t.sdkVersion)&&void 0!==e?e:-1},119:function(t){var e;return null!==(e=null==t?void 0:t.sdkName)&&void 0!==e?e:-1},127:function(t){return(new M).isFullTopRefAvailable||null!=t&&t.isFullTopRefAvailable?1:0},161:function(t){var e;return null!==(e=null==t?void 0:t.width)&&void 0!==e?e:-1},162:function(t){var e;return null!==(e=null==t?void 0:t.height)&&void 0!==e?e:-1},163:function(){return encodeURIComponent((new M).topReferrer)},165:function(t){if(t&&"getViewablePercent"in t){var e,n=null===(e=t.getViewablePercent)||void 0===e?void 0:e.call(t);if(j(n)&&-1!=+n)return(+n).toFixed(1)}return-1},168:function(){var t=new M;return t.onPage?1:t.inCrossDomainFrame?2:t.inSameDomainFrame?3:-1},176:function(t){return j(null==t?void 0:t.startTime)?(new Date).getTime()-t.startTime:-1},177:function(t){return U(t,"measurable")},213:function(){var t,e;return null!==(t=null===(e=window)||void 0===e||null===(e=e.location)||void 0===e||null===(e=e.ancestorOrigins)||void 0===e?void 0:e.length)&&void 0!==t?t:-1},214:function(){var t,e;return null!==(t=null===(e=window)||void 0===e||null===(e=e.history)||void 0===e?void 0:e.length)&&void 0!==t?t:-1},215:function(){var t,e;return null!==(t=null===(e=window)||void 0===e||null===(e=e.navigator)||void 0===e?void 0:e.userAgent)&&void 0!==t?t:-1},216:function(){var t,e;return null!==(t=null===(e=window)||void 0===e||null===(e=e.screen)||void 0===e?void 0:e.width)&&void 0!==t?t:-1},217:function(){var t,e;return null!==(t=null===(e=window)||void 0===e||null===(e=e.screen)||void 0===e?void 0:e.height)&&void 0!==t?t:-1},218:function(t){return U(t,"isFullscreenMode")},226:function(){return H(t)?function(t,e){var n=e instanceof Window?e:window,r=(E(t)?t:n.navigator.userAgent).toLowerCase(),i=n.navigator.standalone,o=/safari/.test(r),s=/iphone|ipod|ipad/.test(r),u=r.includes("wv"),a=Boolean(r.match(/(WebView|Android.*(wv|.0.0.0)|Linux; U; Android)/gi));return s&&!i&&!o||u||a}()?3:2:1;var t},227:function(t){return U(t,"absoluteVisible")},305:function(t){var e;return null==t||null===(e=t.clientId)||void 0===e?void 0:e[1]},306:function(t){var e;return null==t||null===(e=t.clientId)||void 0===e?void 0:e[2]},307:function(t){var e;return null==t||null===(e=t.clientId)||void 0===e?void 0:e[3]},308:function(t){var e,n;return null!==(e=null==t||null===(n=t.otherSystemsId)||void 0===n?void 0:n._ym_uid)&&void 0!==e?e:0},309:function(t){var e,n;return null!==(e=null==t||null===(n=t.otherSystemsId)||void 0===n?void 0:n._ga)&&void 0!==e?e:0},310:function(t){var e,n;return null!==(e=null==t||null===(n=t.otherSystemsId)||void 0===n?void 0:n.domain_sid)&&void 0!==e?e:0}},q=function(){return s((function t(e){if(i(this,t),a(this,"context",void 0),a(this,"collectedCustoms",void 0),a(this,"customMap",void 0),C(e)){if(!Object.entries(e).some((function(t){var e=m(t,2),n=e[0],r=e[1];return j(+n)&&"function"==typeof r})))throw new TypeError("CustomCollector: invalid custom map.");this.customMap=e}else this.customMap=Y;this.collectedCustoms={}}),[{key:"collectFrom",value:function(t){if(!C(t))throw new TypeError("CustomCollector: the context must be an object.");if(function(t){if(!I(t))throw new Error("".concat(t," is not an object"));for(var e in t)return!1;return!0}(t))throw new TypeError("CustomCollector: empty context was passed.");return this.context=t,this}},{key:"collect",value:function(t){if(!Array.isArray(t))throw new TypeError("CustomCollector: there is no custom list.");if(!this.context)throw new Error("CustomCollector: missing context.");var e,n=u(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(j(r)){var i="function"==typeof this.customMap[r]?this.customMap[r](this.context):null;null!=i&&""!==i&&(this.collectedCustoms[r]=i)}}}catch(t){n.e(t)}finally{n.f()}return this}},{key:"clear",value:function(){for(var t in this.collectedCustoms)delete this.collectedCustoms[t];return this}},{key:"toString",value:function(){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"&";return I(t)?Object.entries(t).map((function(t){return t.join("=")})).join(e):null}(this.collectedCustoms,";")}}])}(),G=function(t,e,n){var r;if((P(r=t,HTMLElement)||L(r)||t instanceof SVGElement)&&C(e))for(var i in e){n(t,i,j(e[i])?String(e[i]):e[i])}},V=function(t,e){return G(t,e,(function(t,e,n){return t.style.setProperty(e,n)}))},J={path:"/",SameSite:"None",Secure:!0},Z=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=F((function(){return encodeURIComponent(t)})),i=F((function(){return encodeURIComponent(e)}));if(null!==r&&null!==i){!1===(n=v(v({},J),n)).Secure&&delete n.Secure,n.expires instanceof Date&&(n.expires=n.expires.toUTCString());var o=r+"="+i;for(var s in n){o+="; "+s;var u=n[s];!0!==u&&(o+="="+u)}return document.cookie=o}},Q=function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=window.location.hostname.replace(/(((http|https):)?\/\/)?/i,"");r.includes(".");)F((function(){return Z(t,e,v(v({},n),{},{domain:"."+r}))})),r=r.split(".").slice(1).join(".")},z=function(t){var e;return null!==(e=F((function(){return decodeURIComponent(t)})))&&void 0!==e?e:t},B=function(t){if("string"==typeof t&&""!==t)return document.cookie.split("; ").reduce((function(t,e){var n=m(e.split("="),2),r=n[0],i=n[1];return r&&i&&(t[z(r)]=z(i)),t}),{})[t]},X=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof t&&""!==t&&Z(t,"",v({"max-age":-1,expires:new Date},e))},$=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=window.location.hostname.replace(/(((http|https):)?\/\/)?/i,"");n.includes(".");)F((function(){return X(t,v(v({},e),{},{domain:"."+n}))})),n=n.split(".").slice(1).join(".")},K=function(){return s((function t(e,n){i(this,t),a(this,"db",void 0),a(this,"dbName",void 0),a(this,"storeName",void 0),this.db=null,this.dbName=e,this.storeName=n}),[{key:"connect",value:function(){var t=this;return new Promise((function(e,n){var r,i=null===(r=window.indexedDB)||void 0===r?void 0:r.open(t.dbName);i.onerror=function(){n(i.error)},i.onupgradeneeded=function(){i.result&&(t.db=i.result,t.db.createObjectStore(t.storeName,{keyPath:"name"}))},i.onsuccess=function(){i.result||n(new Error("Database is unavailable")),t.db=i.result,e()}}))}},{key:"set",value:function(t,e){if(!this.db)throw new Error("Database connection is not established");var n=this.db.transaction([this.storeName],"readwrite");return n.objectStore(this.storeName).put({name:t,value:e}),new Promise((function(t,e){n.oncomplete=function(){return t()},n.onerror=function(){return e(new Error("Transaction failed"))}}))}},{key:"get",value:function(t){if(!this.db)throw new Error("Database connection is not established");var e=this.db.transaction([this.storeName]).objectStore(this.storeName).get(t);return new Promise((function(t,n){e.onsuccess=function(){return t(e.result)},e.onerror=function(){return n(new Error("Get operation failed"))}}))}},{key:"delete",value:function(t){if(!this.db)throw new Error("Database connection is not established");var e=this.db.transaction([this.storeName],"readwrite");return e.objectStore(this.storeName).delete(t),new Promise((function(t,n){e.oncomplete=function(){return t()},e.onerror=function(){return n(new Error("Transaction failed"))}}))}},{key:"setItem",value:(r=n(p().mark((function t(e,n){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.connect();case 2:return t.next=4,this.set(e,n);case 4:this.disconnect();case 5:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"getItem",value:(e=n(p().mark((function t(e){var n;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.connect();case 2:return t.next=4,this.get(e);case 4:return n=t.sent,this.disconnect(),t.abrupt("return",n);case 7:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"deleteItem",value:(t=n(p().mark((function t(e){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.connect();case 2:return t.next=4,this.delete(e);case 4:return this.disconnect(),t.abrupt("return");case 6:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})},{key:"disconnect",value:function(){this.db&&(this.db.close(),this.db=null)}}]);var t,e,r}(),tt=function(t,e){var n,r,i=new K(t,t+"_store"),o=(n=3650,(r=new Date).setHours(r.getHours()+24*n),r);F((function(){return Q(t,e,{expires:o})})),F((function(){var n;return null===(n=window.localStorage)||void 0===n?void 0:n.setItem(t,e)})),F((function(){var n;return null===(n=window.sessionStorage)||void 0===n?void 0:n.setItem(t,e)})),T((function(){return i.setItem(t,e)}))},et=function(){var t=n(p().mark((function t(e){var n;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=new K(e,e+"_store"),t.t1=F((function(){return B(e)}))||F((function(){var t;return null===(t=window.localStorage)||void 0===t?void 0:t.getItem(e)}))||F((function(){var t;return null===(t=window.sessionStorage)||void 0===t?void 0:t.getItem(e)})),t.t1){t.next=6;break}return t.next=5,T((function(){return n.getItem(e).then((function(t){return null==t?void 0:t.value}))}));case 5:t.t1=t.sent;case 6:if(t.t0=t.t1,t.t0){t.next=9;break}t.t0=null;case 9:return t.abrupt("return",t.t0);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),nt=function(t){function e(t){var n;i(this,e);var o=e.hasProtocol(t)?t:"https:"+t;return a(n=r(this,e,[o]),"macrosList",[]),Object.setPrototypeOf(n,e.prototype),n}return d(e,t),s(e,[{key:"setMacros",value:function(t,e){e=e.toString(),t=t.replace(/[^a-zA-Z0-9 ]/g,"");var n=new RegExp("\\!\\[".concat(t,"\\]"));return this.macrosList.push({value:e,template:n}),this}},{key:"setRnd",value:function(){return this.setMacros("rnd",_(6)),this}},{key:"setParams",value:function(t){for(var e in t){var n=t[e];C(n)?this.setParams(n):this.searchParams.set(e,n.toString())}return this}},{key:"toString",value:function(){var t;try{t=decodeURIComponent(b(e,"toString",this)([]))}catch(n){t=b(e,"toString",this)([])}var n,r=u(this.macrosList);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.value,s=i.template;t=t.replace(s,o)}}catch(t){r.e(t)}finally{r.f()}var a=new URL(t);return a.search=a.searchParams.toString(),a.toString()}},{key:"httpslize",value:function(){return"https:"!==this.protocol&&(this.protocol="https:"),this}},{key:"copy",value:function(){var t,n=new e(URL.prototype.toString.call(this));return(t=n.macrosList).push.apply(t,g(this.macrosList)),n}}],[{key:"hasProtocol",value:function(t){return/^(https|http):\/\/.+/.test(t)}}])}(k(URL)),rt=function(){return s((function t(e){var n=e.uri,r=e.options,o=e.timeout,s=e.requestCount;i(this,t),a(this,"uri",void 0),a(this,"options",void 0),a(this,"timeout",void 0),a(this,"requestCount",void 0),a(this,"requestController",void 0),a(this,"timeoutHandler",void 0),a(this,"numberOfCalls",0),this.uri=n,C(r)?this.options=r:this.options={},j(o)?this.timeout=o<200?200:o:this.timeout=1e4,!j(s)||s<1?this.requestCount=2:this.requestCount=s}),[{key:"request",value:function(){var t=this;try{return this.requestController=new AbortController,this.timeoutHandler=setTimeout((function(){return t.requestController.abort()}),this.timeout),fetch(this.uri,v(v({},this.options),{},{signal:this.requestController.signal})).then((function(e){return clearTimeout(t.timeoutHandler),t.requestController=void 0,t.timeoutHandler=void 0,t.numberOfCalls=0,e})).catch((function(e){if(clearTimeout(t.timeoutHandler),t.requestController=void 0,t.timeoutHandler=void 0,t.numberOfCalls++,t.numberOfCalls>=t.requestCount)throw t.numberOfCalls=0,new Error("Fetcher: Error during request.");return t.request()}))}catch(t){return Promise.reject(new Error("Fetcher: Error when trying to request."))}}}])}(),it={position:"absolute",display:"none",width:"0px",height:"0px"},ot=function(){return s((function t(e,n){if(i(this,t),a(this,"url",void 0),a(this,"element",void 0),E(e)&&W(e))throw new Error("Pixel: url should not be an empty.");if(!E(e))throw new Error("Pixel: url must be a string.");this.url=e,n instanceof Document?this.element=n.body:n instanceof HTMLElement?this.element=n:this.element=document.body}),[{key:"send",value:function(){var t=this;return new Promise((function(e,n){var r=document.createElement("img");V(r,it),r.setAttribute("referrerpolicy","no-referrer-when-downgrade"),r.setAttribute("src",t.url),r.setAttribute("alt","");var i=setTimeout((function(){r.removeEventListener("load",o),r.removeEventListener("error",o),n(new Error("Pixel: TimeOut error."))}),1e4),o=function(t){clearTimeout(i),"error"===t.type?n(new Error("Pixel: Img error loading.")):e(t)};r.addEventListener("load",o),r.addEventListener("error",o),t.element.append(r)}))}}])}(),st=function(){var t=n(p().mark((function t(e){var n,r;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,et(e);case 2:if(n=t.sent,r=n?N(n):null){t.next=6;break}return t.abrupt("return",null);case 6:if(!("nextSyncTime"in r)){t.next=8;break}return t.abrupt("return",{hash:r.hash,nst:r.nextSyncTime,sl:r.syncLog});case 8:return t.abrupt("return",r);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ut=function(){return s((function t(e){i(this,t),a(this,"syncId",void 0),a(this,"syncList",void 0),a(this,"syncInProgressName",void 0),a(this,"syncName",void 0),a(this,"prevSyncResult",void 0),a(this,"syncResult",void 0),a(this,"systems",void 0);var n=e.syncListName,r=e.syncList,o=e.systemParams,s=o.syncId,u=o.syncAll;this.syncId=s,this.syncList=r,this.systems=u?this.syncList.b.concat(this.syncList.c):this.syncList.b,this.syncInProgressName="acsip_"+n,this.syncName="acs_"+n,this.prevSyncResult=null,this.syncResult=null,this.visibilityChangeHandler=this.visibilityChangeHandler.bind(this),document.addEventListener("visibilitychange",this.visibilityChangeHandler),this.init()}),[{key:"init",value:(e=n(p().mark((function t(){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=0===this.systems.length,t.t0){t.next=5;break}return t.next=4,this.isSyncInProgress();case 4:t.t0=t.sent;case 5:if(!t.t0){t.next=7;break}return t.abrupt("return");case 7:return t.next=9,st(this.syncName);case 9:if(this.prevSyncResult=t.sent,this.shouldSync()){t.next=12;break}return t.abrupt("return");case 12:this.sync(),this.cleanup();case 14:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"sync",value:function(){this.toggleSyncInProgress(!0),this.syncResult={hash:this.syncList.a,nst:1/0,sl:{}};var t,e=(new Date).getTime(),n=u(this.systems);try{for(n.s();!(t=n.n()).done;){var r,i=t.value,o=i.f,s=i.e,a=1e3*R(s);null!==(r=this.prevSyncResult)&&void 0!==r&&r.sl[o]&&e<this.prevSyncResult.sl[o]+a?this.syncResult.sl[o]=this.prevSyncResult.sl[o]:(this.syncSystem(i),this.syncResult.sl[o]=e),this.syncResult.nst=Math.min(this.syncResult.sl[o]+a,this.syncResult.nst)}}catch(t){n.e(t)}finally{n.f()}}},{key:"syncSystem",value:function(t){var e=t.d.replaceAll("![cid]",this.syncId).replaceAll("![encodedcid]",function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"=";if(0===t.length)return"";for(var n=[],r=0;r<t.length;r++)n.push(t.charCodeAt(r).toString(2).padStart(8,"0"));for(var i=A(n.join(""),5,"0"),o=[],s=0;s<i.length;s+=5){var u=parseInt(i.slice(s,s+5),2);o.push("abcdefghijklmnopqrstuvwxyz234567"[u])}return A(o.join(""),8,e)}(this.syncId,"-")).replaceAll("![rnd]",_(6).toString());new ot(e).send().catch((function(){}))}},{key:"shouldSync",value:function(){return!this.prevSyncResult||this.prevSyncResult.hash!==this.syncList.a||-1===this.prevSyncResult.nst||(new Date).getTime()>this.prevSyncResult.nst}},{key:"isSyncInProgress",value:(t=n(p().mark((function t(){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=Boolean,t.next=3,et(this.syncInProgressName);case 3:return t.t1=t.sent,t.abrupt("return",(0,t.t0)(t.t1));case 5:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"toggleSyncInProgress",value:function(t){var e,n;t?tt(this.syncInProgressName,"true"):(e=this.syncInProgressName,n=new K(e,e+"_store"),F((function(){return $(e)})),F((function(){var t;return null===(t=window.localStorage)||void 0===t?void 0:t.removeItem(e)})),F((function(){var t;return null===(t=window.sessionStorage)||void 0===t?void 0:t.removeItem(e)})),T((function(){return n.deleteItem(e)})))}},{key:"saveSyncResult",value:function(){tt(this.syncName,JSON.stringify(this.syncResult))}},{key:"pauseSync",value:function(){this.toggleSyncInProgress(!1),this.saveSyncResult()}},{key:"cleanup",value:function(){this.pauseSync(),document.removeEventListener("visibilitychange",this.visibilityChangeHandler)}},{key:"visibilityChangeHandler",value:function(){if("visible"===document.visibilityState)this.init();else{if(!this.syncResult)return;this.syncResult.nst=-1,this.prevSyncResult&&(this.syncResult.sl=v(v({},this.prevSyncResult.sl),this.syncResult.sl)),this.pauseSync()}}}]);var t,e}(),at=[],ct=[],lt=[{f:"1228",d:"https://ev.adriver.ru/cgi-bin/rle.cgi?sid=1&ad=774375&bt=21&cid=![cid]&custom=180=1&pass=![cid]",e:"24:00:00"},{f:"224",d:"https://ev.adriver.ru/cgi-bin/rle.cgi?sid=1&ad=790715&bt=21&cid=![cid]&custom=180=1&pass=![encodedcid]",e:"24:00:00"}],dt=[],ft={position:"absolute",width:"0px",height:"0px",border:"0px",padding:"0px",margin:"0px"},ht=function(t,e,n){var r,i;E(t)&&0===e&&(r="".concat("https://content.adriver.ru/cstp.html","?").concat(t,"&").concat(n),(i=document.createElement("iframe")).src=r,V(i,ft),document.body.append(i))},vt="adrcid",pt=function(){return s((function t(){i(this,t),a(this,"adrcidValue",void 0),this.adrcidValue=null}),[{key:"get",value:function(){var t=n(p().mark((function t(){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this.adrcidValue,t.t0){t.next=5;break}return t.next=4,et(vt);case 4:t.t0=t.sent;case 5:return this.adrcidValue=t.t0,t.abrupt("return",this.adrcidValue);case 7:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"getFromCookie",value:function(){return this.adrcidValue=B(vt)||null,this.adrcidValue}},{key:"set",value:function(t){this.adrcidValue=t,tt(vt,t)}},{key:"getValue",value:function(){return this.adrcidValue}}])}(),yt=function(){return s((function t(e){i(this,t),a(this,"subscribers",void 0),this.subscribers=Object.create(null),e.addEventListener("message",this.handleMessage.bind(this))}),[{key:"subscribe",value:function(t,e){Object.prototype.hasOwnProperty.call(this.subscribers,t)||(this.subscribers[t]=[]),this.subscribers[t].push(e)}},{key:"handleMessage",value:function(t){if(t.data){var e=t.data,n=this.subscribers[e.type];null==n||n.forEach((function(n){return n(t,e.payload)}))}}}])}(),mt={credentials:"include"},bt=[127,305,306,307,308,309,310],gt="adrdel",wt=432e5,St="adrfpip",xt=6e5,kt=function(){return s((function t(e){var n;if(i(this,t),a(this,"sid",void 0),a(this,"clientId",void 0),a(this,"adrcidStorage",void 0),a(this,"subscribers",void 0),a(this,"location",void 0),a(this,"otherSystemsId",void 0),a(this,"frameMessageHandler",void 0),a(this,"timestamp",void 0),a(this,"sessionId",void 0),a(this,"shouldStart",void 0),this.sid=e.sid||"1",this.clientId=e.clientId,this.adrcidStorage=new pt,this.subscribers=new Set,this.location=new M,this.timestamp=Date.now(),this.sessionId=_(10),this.otherSystemsId=a(a(a({},"_ym_uid",B("_ym_uid")||null),"_ga",(null===(n=B("_ga"))||void 0===n?void 0:n.split(".").slice(2).join("."))||null),"domain_sid",B("domain_sid")||null),this.location.inCrossDomainFrame||(this.frameMessageHandler=new yt(this.location.topWindow),this.frameMessageHandler.subscribe(1,this.getTopDataMessageHandler.bind(this)),this.frameMessageHandler.subscribe(2,this.requestMessageHandler.bind(this))),B(St))this.shouldStart=!1;else{var r=function(t){for(var e="abdehkmnpswxzABDEFGHKMNPQRSTWXZ123456789",n=new Array(t),r=0;r<t;r++){var i=Math.floor(40*Math.random());n[r]=e.substring(i,i+1)}return isNaN(+n[0])||(n[0]="x"),n.join("")}(12),o=new Date(Date.now()+xt);Q(St,r,{expires:o}),this.shouldStart=!0}this.init()}),[{key:"init",value:(e=n(p().mark((function t(){var e,n,r;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.shouldStart){t.next=7;break}return t.next=3,this.getExternalAdrcid();case 3:if(!(e=t.sent)){t.next=7;break}return this.notify(e),t.abrupt("return");case 7:return t.prev=7,t.next=10,this.adrcidStorage.get();case 10:if(!(n=t.sent)){t.next=21;break}return this.notify(n),t.next=15,et(gt);case 15:if((r=t.sent)&&!(Number(r)+wt<Date.now())){t.next=19;break}return t.next=19,this.requestAdrcid();case 19:t.next=23;break;case 21:return t.next=23,this.requestAdrcid();case 23:t.next=27;break;case 25:t.prev=25,t.t0=t.catch(7);case 27:return t.prev=27,$(St),t.finish(27);case 30:case"end":return t.stop()}}),t,this,[[7,25,27,30]])}))),function(){return e.apply(this,arguments)})},{key:"getExternalAdrcid",value:function(){var t=this;return new Promise((function(e){var n=new D((function(){B(St)||(e(t.adrcidStorage.getFromCookie()),clearTimeout(r),n.stop())}),100),r=setTimeout((function(){e(null),n.stop()}),2e3);n.start()}))}},{key:"subscribe",value:function(t,e){var n=this,r=t.bind(e);this.adrcidStorage.get().then((function(t){t?r({adrcid:t,loc:n.location.topReferrer,onPage:!n.location.inCrossDomainFrame,timestamp:n.timestamp,sessionId:n.sessionId,documentWidth:document.documentElement.scrollWidth,documentHeight:document.documentElement.scrollHeight}):n.subscribers.add(r)})).catch((function(){}))}},{key:"getTopDataMessageHandler",value:function(t){this.subscribe((function(e){var n;null===(n=t.source)||void 0===n||n.postMessage({type:10,payload:e},{targetOrigin:"*"})}))}},{key:"requestMessageHandler",value:function(t,e){if(E(e)){var n=N(e),r=function(t,e){var n=Object.create(null);for(var r in t){var i;n[r]=null!==(i=e[r])&&void 0!==i?i:t[r]}return n}({bid:0,xpid:"",sid:this.sid,bn:0,ad:0,sz:0,bt:0,pz:0,type:0,rnd:"![rnd]",tuid:"1"},null!=n?n:{}),i=new nt("https://ev.adriver.ru/cgi-bin/event.cgi?").setParams(r).setRnd().toString();new ot(i).send().catch((function(){}))}}},{key:"notify",value:function(t){var e=this;this.adrcidStorage.set(t),this.subscribers.forEach((function(n){return F((function(){return n({adrcid:t,loc:e.location.topReferrer,onPage:!e.location.inCrossDomainFrame,timestamp:e.timestamp,sessionId:e.sessionId,documentWidth:document.documentElement.scrollWidth,documentHeight:document.documentElement.scrollHeight})}))})),this.subscribers.clear()}},{key:"requestAdrcid",value:(t=n(p().mark((function t(){var e,n,r=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.adrcidStorage.get();case 2:return e=t.sent,n=this.makeUri(e),t.abrupt("return",new rt({uri:n,options:mt}).request().then((function(t){return t.json()})).then((function(t){var e=t.adrcid;e&&(tt(gt,Date.now().toString()),r.notify(e))})).catch((function(){})));case 5:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"makeUri",value:function(t){var e=(new q).collectFrom({clientId:this.clientId,otherSystemsId:this.otherSystemsId}).collect(bt),n={sid:this.sid,loc:this.location.topReferrer,custom:e.toString()};return t&&(n.cid=t),new nt("https://ad.adriver.ru/cgi-bin/json.cgi?ad=719473&bt=55&pid=3198680&bid=7189165&bn=7189165&tuid=1&cfa=1").setParams(n).toString()}},{key:"getAdrcid",value:function(){return this.adrcidStorage.getValue()}}]);var t,e}(),Ot=["sl"],Pt=function(t){function e(t){var n,o=t.sl,s=function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,Ot);return i(this,e),a(n=r(this,e,[s]),"listsToSync",void 0),n.listsToSync=o,n.subscribe(n.syncLists.bind(n)),n}return d(e,t),s(e,[{key:"syncLists",value:function(t){var e,n,r,i,o,s,u=t.adrcid;null!==(e=this.listsToSync)&&void 0!==e&&e.fpsl&&(o=0,s=1,E(i=u)&&0===o&&new ut({syncListName:1,syncList:{a:"3b664b72ef65c3258cdf4c00d2407c1f062813b6",b:at,c:ct},systemParams:{syncId:i,syncAll:s}})),null!==(n=this.listsToSync)&&void 0!==n&&n.tpsl&&ht(u,0,1),!1===(null===(r=this.listsToSync)||void 0===r?void 0:r.tsl)||["YWxmYWJhbmsucnU=","YWxmYWZvcmV4LnJ1","YWxmYWxlYXNpbmcucnU=","YmdmLnJ1","YmdmYmFuay5ydQ==","YmxhbmMucnU=","Y2l0aWJhbmsucnU=","ZGVsby5ydQ==","ZGVsdGFjcmVkaXQucnU=","ZG9tY2xpY2sucnU=","ZG9tcmZiYW5rLnJ1","Z2F6cHJvbWJhbmsuaW52ZXN0bWVudHM=","Z2F6cHJvbWJhbmsucnU=","aG9tZWNyZWRpdC5ydQ==","bGFtb2RhLnJ1","bWVnYWZvbi5ydQ==","bW9kdWxiYW5rLnJ1","bXNiLnNvdmNvbWJhbmsucnU=","bXRzLnJ1","bXRzYmFuay5ydQ==","b3Blbi5ydQ==","b3Blbi1icm9rZXIucnU=","cG9jaHRhYmFuay5ydQ==","cG9kcGlza2Euc2JlcmF1dG8uY29t","cmdzLnJ1","cm9zYmFuay5ydQ==","cnQucnU=","c2FsZXMudWJyci5ydQ==","c2JlcmZhY3RvcmluZy5ydQ==","c2JlcmxlYXNpbmcucnU=","c292Y29tYmFuay5ydQ==","dGVsZTIucnU=","dGlua29mZi5ydQ==","dWJyci5ydQ==","dW5pY3JlZGl0YmFuay5ydQ==","dXJhbHNpYi5ydQ==","dnRiLnJ1","eW90YS5ydQ=="].some((function(t){return-1!==window.location.host.indexOf(atob(t))}))||function(t,e,n){E(t)&&0===e&&new ut({syncListName:3,syncList:{a:"2519d36ba1d6b3a4bd08e045fbf175fd06f869ed",b:lt,c:dt},systemParams:{syncId:t,syncAll:n}})}(u,0,1)}}])}(kt),jt=function(t){var e=new URL(t).hostname,n=e.split(".");return n.length>2?n.slice(-2).join("."):e},Et=function(t){var e=new M,n=e.inCrossDomainFrame?window:e.topWindow;e.inCrossDomainFrame&&jt(document.referrer)!==jt(window.location.href)||n.AFPS||Object.defineProperty(n,"AFPS",{value:new Pt(t)})};function It(t,e,n){e=e||"&",n=n||"=";var r=[];for(var i in t)t.hasOwnProperty(i)&&r.push(i+n+encodeURIComponent(t[i]));return r.join(e)}function Ct(t){return(/^\/\//.test(t)?"https:":"")+t}function Lt(){return Math.round(1e6*Math.random())}function _t(){for(var t,e,n=arguments[0],r=1,i=arguments.length;r<i;r++)for(e in t=arguments[r])t.hasOwnProperty(e)&&(t[e]instanceof Function?n[e]=t[e]:t[e]instanceof Object?n[e]?_t(n[e],t[e]):n[e]=_t(t[e]instanceof Array?[]:{},t[e]):n[e]=t[e]);return n}function Rt(t){var e,n={};function r(e,r){void 0!==t[e]&&(""!==t[e]&&(n[r]=t[e]),delete t[e])}return void 0!==t.site_area&&(""!==t.site_area&&(t.sz=t.site_area),delete t.site_area),r("offer_id","10"),r("category_id","11"),r("lead_id","150"),r("order_sum","151"),r("reg_id","152"),r("user_id","153"),function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(e=_t(t.custom||{},n))||(t.custom=e),t}function Nt(t,e){var n=t.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return n?decodeURIComponent(n[2]):null}var Ft="DSPCounter";function Tt(t){!function(t,e){try{var n=e.getElementsByTagName("head")[0],r=e.createElement("script"),i=t.split("![rnd]").join(Lt());r.setAttribute("type","text/javascript"),r.setAttribute("charset","windows-1251"),r.setAttribute("referrerpolicy","no-referrer-when-downgrade"),r.setAttribute("src",i),r.onreadystatechange=function(){var t;/loaded|complete/.test(this.readyState)&&(r.onload=null,r.parentElement?n.removeChild(r):null===(t=n.querySelector('script[src="'.concat(i,'"]')))||void 0===t||t.remove())},r.onload=function(){var t;r.parentElement?n.removeChild(r):null===(t=n.querySelector('script[src="'.concat(i,'"]')))||void 0===t||t.remove()},n.insertBefore(r,n.firstChild)}catch(t){}}(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:document)}function At(t){_t(Dt.defaults,t)}function Dt(t,e){if(this instanceof Dt)t=Dt.items.length,Dt.items[t]=this,(e=Rt(e)).ph=t,(e=_t({},Dt.defaults,e)).custom=function(t,e,n){e=e||"&",n=n||"=";for(var r,i=[],o=0,s=t.length;o<s;o++)void 0!==(r=t[o])[0]&&void 0!==r[1]&&i.push(r[0]+n+encodeURIComponent(r[1]));return i.join(e)}(function(t,e){var n=t[e];delete t[e];for(var r=function(){var e={};for(var n in t)if(t.hasOwnProperty(n)){var r=n.length;e[r]=e[r]||[],e[r].push(n)}return e}(),i=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}(r).sort((function(t,e){return t<e?1:t>e?-1:0})),o=[],s=0,u=i.length;s<u;s++)for(var a=r[i[s]].sort(),c=0,l=a.length;c<l;c++){var d=a[c];o.push([d,t[d]])}return o.push([e,n]),o}(e.custom,"206"),";"),e.rnd=Lt(),e.suidCName&&(e.suid=Nt(document,e.suidCName)||""),n=function(t){for(var e,n,r=["sid","bt","ad","pid","bid","bn","pz","sz","custom","ph","rnd","tail256","pass"],i={},o=0,s=r.length;o<s;o++)void 0!==(n=t[e=r[o]])&&(i[e]=n,delete t[e]);return It(_t({},i,t))}(e),Tt(Dt.redirectHost+"/cgi-bin/erle.cgi?"+n);else switch(t){case"send":return new Dt(null,e);case"firstSend":return Dt.setDefaults(Rt(e)),new Dt(null,{});default:return Dt.items[t]}var n}Dt.items=[],Dt.defaults={bt:62,tail256:document.referrer||"unknown",custom:{}},At(function(){var t={custom:{}};t.custom[206]=Ft;var e=function(t){var e={};if(t){var n=t.split("&");for(var r in n)if(n.hasOwnProperty(r)){var i=n[r].split("=");void 0!==i[0]&&void 0!==i[1]&&(e[i[0]]=decodeURIComponent(i[1]))}}return e}(location.search.substring(1));e.adrclid&&(t.fsid=e.adrclid);var n=Nt(document,"adrcid");n&&(t.cid=n),Et({});var r,i=Nt(document,"_ym_uid")||void 0,o=(r=Nt(document,"_ga"))?r.split(".").slice(-2).join("."):void 0;return i&&(t.yid1=i),o&&(t.gid1=o),t}()),Dt.redirectHost="https://ad.adriver.ru",Dt.loaded=!0,Dt.httplize=Ct,Dt.loadScript=Tt,Dt.setDefaults=At,_t({httplize:Ct,loadScript:Tt,toQueryString:It},Dt.prototype),window[Ft].loaded||(!function(){for(var t,e=window[Ft],n=e.q?e.q.length:0,r=0;r<n;r++)Dt((t=e.q[r])[0],t[1])}(),window[Ft]=Dt)}();